import pandas as pd

pop ={'Nevada': {2001:1, 2002:2.4},
       'Ohio': {2000:3.1, 2001:3.2, 2002:4.3}}

df = pd.DataFrame(pop)

print(df)

pop1 ={'A':{'A1':1.2,'b1':2.3},
       'B':{'S1':3.2,'C1':4.3,'b1':5}
       }

df1 = pd.DataFrame(pop1)
print(df1)

dft= df1.T

print(dft)

data = {'OrderNo':['O001','O002','O003','O004','O005','O005'],
        'SKUNo':['S0001','S0003','S0005','S0002','S0004','S0006']}

dfdata = pd.DataFrame(data,index=data['OrderNo'],columns=data['SKUNo'])

print(dfdata)

